cmake_minimum_required(VERSION 3.0.0)
project(epoll_TCPServer VERSION 0.1.0)

include(CTest)
enable_testing()

set(OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/release)
set(LIBRARY_OUTPUT_PATH    ${OUTPUT_DIR})
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR})

include_directories(./ ./src ./src/include)

file(GLOB src_list ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp ${CMAKE_CURRENT_SOURCE_DIR}/*/*.cpp ${CMAKE_CURRENT_SOURCE_DIR}/*/*.h ${CMAKE_CURRENT_SOURCE_DIR}/*/*.c)
add_executable(epoll_TCPServer ${src_list})

target_link_libraries(epoll_TCPServer  -lpthread )

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
